import java.io.Serializable;
import java.util.ArrayList;


public class Board implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private ArrayList<OilField> oilFields;
	private ArrayList<Team> teams;
	private int size;
	private int numberOfTeams;
	private String [][] boardState;
	public Board(int size, int numberOfTeams) {
		this.size = size;
		this.numberOfTeams = numberOfTeams;
		oilFields = new ArrayList<OilField>();
		teams = new ArrayList<Team>();
		this.boardState = new String [size][size];
		//have to add code for generating oil fields (randomized)
	}
	
	public ArrayList<OilField> getOilFields() {
		return oilFields;
	}

	public ArrayList<Team> getTeams() {
		return teams;
	}

	public int getSize() {
		return size;
	}

	public int getNumberOfTeams() {
		return numberOfTeams;
	}
	public String toString()
	{
		StringBuilder builder = new StringBuilder();
		for(int i = 0; i < boardState.length; i++)
		{
			if(i > 0) 
				builder.append("\n");
			for(int j = 0; j < boardState[0].length; j++)
			{
				if(j > 0) 
					builder.append("\t");
				builder.append(""+boardState[i][j]);
			}
		}
		builder.append("\n");
		return builder.toString();
	}
	
}
